﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BAL.EstRec
{
    public class OCViemModelFDV : INotifyPropertyChanged
    {
        public OCViemModelFDV(List<CapturaFdv> lisFDV)
        {
            Initialize(lisFDV);
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        public CollectionsFDV collections
        {
            get
            {
                return _collections;
            }
            set
            {
                if (_collections != value)
                {
                    _collections = value;
                    NotifyPropertyChanged("Choices");
                }
            }
        }
        public void Initialize(List<CapturaFdv> lisFDV)
        {
            collections = new CollectionsFDV(lisFDV);
        }
        private CollectionsFDV _collections;
    }
}
